return gdk_drawable_get_depth (GDK_DRAWABLE_IMPL_QUARTZ (drawable)->wrapper);
}
-static inline void
-gdk_quartz_fix_cap_not_last_line (GdkGCQuartz *private,
- gint x1,
- gint y1,
- gint x2,
- gint y2,
- gint *xfix,
- gint *yfix)
-{
- *xfix = 0;
- *yfix = 0;
-
- if (private->cap_style == GDK_CAP_NOT_LAST && private->line_width == 0)
- {
- /* fix only vertical and horizontal lines for now */
-
- if (y1 == y2 && x1 != x2)
- {
- *xfix = (x1 < x2) ? -1 : 1;
- }
- else if (x1 == x2 && y1 != y2)
- {
- *yfix = (y1 < y2) ? -1 : 1;
- }
- }
-}
-
static void
gdk_drawable_impl_quartz_finalize (GObject *object)
{
object_class->finalize = gdk_drawable_impl_quartz_finalize;
- drawable_class->create_gc = _gdk_quartz_gc_new;
-
drawable_class->ref_cairo_surface = gdk_quartz_ref_cairo_surface;
drawable_class->set_colormap = gdk_quartz_set_colormap;
void _gdk_quartz_window_scroll (GdkWindow *window,
gint dx,
gint dy);
-void _gdk_quartz_window_queue_translation (GdkWindow *window,
- GdkGC *gc,
- cairo_region_t *area,
- gint dx,
- gint dy);
+void _gdk_quartz_window_translate (GdkWindow *window,
+ cairo_region_t *area,
+ gint dx,
+ gint dy);
gboolean _gdk_quartz_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area);
}
else
{
- int x, y;
int x_offset, y_offset;
int width, height;
- cairo_rectangle_int_t rect;
cairo_t *cr;
x_offset = y_offset = 0;
gdk_drawable_get_size (GDK_DRAWABLE (bg_pixmap), &width, &height);
- cr = gdk_cairo_create (impl);
+ cr = gdk_cairo_create (GDK_DRAWABLE (impl));
gdk_cairo_set_source_pixmap (cr, bg_pixmap, x_offset, y_offset);
cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);